// 统一请求路径前缀在libs/axios.js中修改
import {
  getRequest,
  postRequest,
  managerUrl,
} from "@/libs/axios";

// 获取直播审核分页列表
export const getStudioReportPage = (params) => {
  return getRequest(`${managerUrl}/manager/broadcast/studio/reportList`, params);
};

// 直播审核
export const studioReport = (params) => {
  return getRequest(`${managerUrl}/manager/broadcast/studio/report`, params);
};

// 直播审核-批量删除
export const studioBatchDelReport = (params) => {
  return postRequest(`${managerUrl}/manager/broadcast/studio/batchDeleteReport`, params);
};

// 获取直播管理分页列表
export const studioList = (params) => {
  return getRequest(`${managerUrl}/manager/broadcast/studio/recordList`, params);
};

// 直播管理-解禁/禁播
export const studioBanned = (params) => {
  let headers = { "Content-Type": "application/json"};
  return postRequest(`${managerUrl}/manager/broadcast/studio/isBanned`, params, headers);
};

// 直播管理-批量删除
export const studioBatchDelRecord = (params) => {
  return postRequest(`${managerUrl}/manager/broadcast/studio/deleteRecord`, params);
};

// 获取直播申诉列表
export const appealList = (params) => {
  return getRequest(`${managerUrl}/manager/broadcast/studio/appealList`, params);
};

// 直播申诉审核
export const appealReport = (params) => {
  let headers = { "Content-Type": "application/json"};
  return postRequest(`${managerUrl}/manager/broadcast/studio/appeal/report`, params, headers);
};

// 获取关联词汇列表
export const getListCh = (params) => {
  return getRequest(`${managerUrl}/manager/course/courseCategory/list`, params);
};

// 直播上下架
export const setAppealStatus = (params) => {
  return postRequest(`${managerUrl}/manager/broadcast/studio/isOnline`, params);
};
